/**
 * fileName: ActivityRecordBean.java
 * fileTime: 2011-6-17下午09:22:43
 */
package com.bf.xpdd.domain;

import java.util.Date;

/**
 * 活动成交记录<br>
 * 对应数据库表t_sitn_deal_record
 * 
 * @author linmu
 * 
 */
public class ActivityRecordBean
{
	/**
	 * `id` INT NOT NULL AUTO_INCREMENT , -- 成交记录编号
	 */
	private long id;

	/**
	 * `id_item` BIGINT NULL , -- 淘宝商品编号
	 */
	private long itemId;

	/**
	 * `item_name` VARCHAR(256) NULL , -- 商品名称
	 */
	private String itemName;

	/**
	 * `deal_price` DOUBLE NULL , -- 成交价格
	 */
	private double price;

	/**
	 * `deal_time` DATETIME NULL , -- 成交时间
	 */
	private Date recordTime;

	/**
	 * `name_activity` VARCHAR(128) NULL , -- 所属活动名称
	 */
	private String activityName;

	/**
	 * `id_activity` INT NOT NULL , -- 所属活动编号
	 */
	private long activityId;

	/**
	 * `id_toper` INT NULL , --
	 * 出价最低者(如果该记录数是该商品的最低出价，则产生一个toper记录，记录出价人，再关联到这条记录)
	 */
	private long toperId;

	/**
	 * 购买人的nick
	 */
	private String buyerNick;

	/**
	 * 购买的商品数量
	 */
	private int buyNum;
	
	/** 出价价格 */
	private double bidPrice;
	
	/** 成交状态 1.加入标签人群 2.未加入标签人群 */
	private int status;
	
	/** 获得折扣 -- 淘宝预定义折扣 */
	private double discount;

	/**
	 * @return the id
	 */
	public long getId()
	{
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(long id)
	{
		this.id = id;
	}

	/**
	 * @return the itemId
	 */
	public long getItemId()
	{
		return itemId;
	}

	/**
	 * @param itemId
	 *            the itemId to set
	 */
	public void setItemId(long itemId)
	{
		this.itemId = itemId;
	}

	/**
	 * @return the itemName
	 */
	public String getItemName()
	{
		return itemName;
	}

	/**
	 * @param itemName
	 *            the itemName to set
	 */
	public void setItemName(String itemName)
	{
		this.itemName = itemName;
	}

	/**
	 * @return the price
	 */
	public double getPrice()
	{
		return price;
	}

	/**
	 * @param price
	 *            the price to set
	 */
	public void setPrice(double price)
	{
		this.price = price;
	}

	/**
	 * @return the recordTime
	 */
	public Date getRecordTime()
	{
		return recordTime;
	}

	/**
	 * @param recordTime
	 *            the recordTime to set
	 */
	public void setRecordTime(Date recordTime)
	{
		this.recordTime = recordTime;
	}

	/**
	 * @return the activityName
	 */
	public String getActivityName()
	{
		return activityName;
	}

	/**
	 * @param activityName
	 *            the activityName to set
	 */
	public void setActivityName(String activityName)
	{
		this.activityName = activityName;
	}

	/**
	 * @return the activityId
	 */
	public long getActivityId()
	{
		return activityId;
	}

	/**
	 * @param activityId
	 *            the activityId to set
	 */
	public void setActivityId(long activityId)
	{
		this.activityId = activityId;
	}

	/**
	 * @return the toperId
	 */
	public long getToperId()
	{
		return toperId;
	}

	/**
	 * @param toperId
	 *            the toperId to set
	 */
	public void setToperId(long toperId)
	{
		this.toperId = toperId;
	}

	/**
	 * @return the buyerNick
	 */
	public String getBuyerNick()
	{
		return buyerNick;
	}

	/**
	 * @param buyerNick the buyerNick to set
	 */
	public void setBuyerNick(String buyerNick)
	{
		this.buyerNick = buyerNick;
	}

	/**
	 * @return the buyNum
	 */
	public int getBuyNum()
	{
		return buyNum;
	}

	/**
	 * @param buyNum the buyNum to set
	 */
	public void setBuyNum(int buyNum)
	{
		this.buyNum = buyNum;
	}

	/**
	 * @return the bidPrice
	 */
	public double getBidPrice() {
		return bidPrice;
	}

	/**
	 * @param bidPrice the bidPrice to set
	 */
	public void setBidPrice(double bidPrice) {
		this.bidPrice = bidPrice;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the discount
	 */
	public double getDiscount()
	{
		return discount;
	}

	/**
	 * @param discount the discount to set
	 */
	public void setDiscount(double discount)
	{
		this.discount = discount;
	}
	
}
